package gupao.concurrency.simpledemo.simulate;

import lombok.extern.slf4j.Slf4j;

import java.util.concurrent.TimeUnit;

@Slf4j
public class TimeCostMock {

    public static void mockTimeCost(long timeInMilli){
        try {
            TimeUnit.MILLISECONDS.sleep(timeInMilli);
        } catch (InterruptedException e) {
            log.warn("Mock time cost error");
        }
    }
}
